import Mock from 'mockjs'

const cardIdList = {
  status: 'success',
  'data|19': [
    {
      MEMBERCARDUSER_ID: '@string(32)',
      'STATE|1':[0,1,2]//审批状态 0-待审批 1-审批同意 2-审批不同意
    }
  ]
}

const cardList = {
  status: 'success',
  'data|8': [
    {
      MEMBERCARDUSER_ID: '@string(32)',
      REQUEST_DATETIME:'@datetime("yyyy-MM-dd HH:mm")',
      OPERATOR: '@cname',
      'operator_DEPARTMENT|1':['营销部','市场部','楼面部','演义部','工程部'],
      CARDNAME:'@ctitle(5,12)',
      'TYPE|1':[0,1,2],//0-首次办卡 1-充值 2-旧数据导入
      'STATE|1':[0,1],//0-未激活 1-已激活
      'APPROVAL_STATE|1':[0,1,2]//审批状态 0-待审批 1-审批同意 2-审批不同意
    }
  ]
}

const cardDetail = {
  status: 'success',
  data:{
    MEMBERCARDUSER_ID: '@string(32)',
    CARDNUMBER:'20181212100'+'@integer(100000000, 999999999)',
    ORDER_ID: '@string(32)',
    ORDER_NUMBER:'20181212100'+'@integer(100000000, 999999999)',
    'ROOM_PLATFORM_TYPE|1': ['散台','卡座','高卡','包厢'],
    'AREA|1':['大厅区','吧台区','包厢区'],
    'NUMBER|1':['A1台','B1台','C1台','M1台','A2台','B2台','C2台','M2台','A3台','B3台','C3台','M3台','1号房'],
    REQUEST_DATETIME:'@datetime("yyyy-MM-dd HH:mm")',
    OPERATOR: '@cname',
    'operator_DEPARTMENT|1':['营销部','市场部','楼面部','演义部','工程部'],
    CARDNAME:'@ctitle(5,12)',
    RECHARGE_PRICE:'@float(300, 50000, 2, 2)',
    CUSTOMER_NAME: '@cname',
    'TYPE|1':[0,1,2],//0-首次办卡 1-充值 2-旧数据导入
    'STATE|1':[0,1],//0-未激活 1-已激活
    'APPROVAL_STATE|1':[0,1,2],//审批状态 0-待审批 1-审批同意 2-审批不同意
    'PRICE|1': [1000,1800,10000,18000,30000,60000],
    AUDITOR: '@cname',
    'auditor_DEPARTMENT|1':['营销部','市场部','楼面部','演义部','工程部']
  }
}

export {cardIdList,cardList,cardDetail}
